package com.mallbook.model.pojo;

import java.math.BigDecimal;
import java.util.List;

/**
 * @Author 宋明松
 * @Version V1.0.0
 * @Date 2022-06-23
 * 购物车实体类
 */
public class Buys {
    private Integer id;
    private Integer userId;
    //    private Integer bookId;
    private Integer num;
    private String times;
    private BigDecimal price;
    private Integer state;
    private List<Goods> goods;

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public Integer getUserId() {
        return userId;
    }

    public void setUserId(Integer userId) {
        this.userId = userId;
    }

    public Integer getNum() {
        return num;
    }

    public void setNum(Integer num) {
        this.num = num;
    }

    public String getTimes() {
        return times;
    }

    public void setTimes(String times) {
        this.times = times;
    }

    public BigDecimal getPrice() {
        return price;
    }

    public void setPrice(BigDecimal price) {
        this.price = price;
    }

    public Integer getState() {
        return state;
    }

    public void setState(Integer state) {
        this.state = state;
    }

    public List<Goods> getGoods() {
        return goods;
    }

    public void setGoods(List<Goods> goods) {
        this.goods = goods;
    }

    @Override
    public String toString() {
        return "Buys{" +
                "id=" + id +
                ", userId=" + userId +
                ", num=" + num +
                ", times='" + times + '\'' +
                ", price=" + price +
                ", state=" + state +
                ", goods=" + goods +
                '}';
    }
}
